package com.mowh.multithreading.worker.thread.worker;

/**
 * @author mowh1gd
 * @create 2023/11/23 15:03
 */
public class Main {
    public static void main(String[] args) {
        Channel channel = new Channel(5);//5个工人线程（线程池）复用地一直处理请求。
        channel.startWorkers();
        new ClientThread("Alice", channel).start();//3个Client线程用于一直发送请求。
        new ClientThread("Bobby", channel).start();
        new ClientThread("Chris", channel).start();
    }
}
